﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/AddEdit.Master" Inherits="System.Web.Mvc.ViewPage<App.Views.ViewModels.RegistrationInfoViewModel>" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <script type="text/javascript">
        $(function () {
            $('#btnSave').click(function () {
                var url = $('form').attr('action');
                $.post(url, $('form').serialize(), function (result) {
                    if (result && result.success) {
                        window.returnValue = result.msg;
                        window.close();
                    } else {
                        $("#dvAddEdit").html(result);         //更新页面
                    }
                });
            });
        });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div id="dvAddEdit">
    <%Html.RenderPartial("UCRegistrationInfoEdit", Model); %>
    </div>
    <div class="clearboth btnsave">
        <input type="button" value="保存" id="btnSave" class="btn" />
    </div>
</asp:Content>
